<!DOCTYPE HTML>
<html  lang="zh" xmlns:th="http://www.thymeleaf.org">
<meta charset="utf-8">
<head th:include="include :: header"></head>
<body class="white-bg">
    <div class="wrapper wrapper-content animated fadeInRight ibox-content">
        <form class="form-horizontal m" id="form-parameter-add">
			<div class="form-group">	
				<label class="col-sm-2 control-label">入校开始时间：</label>
				<div class="col-sm-4">
					<input id="inSTime" name="inSTime" class="form-control time" type="text">
				</div>
				<label class="col-sm-2 control-label">入校结束时间：</label>
				<div class="col-sm-4">
					<input id="inETime" name="inETime" class="form-control time" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-2 control-label">出校开始时间：</label>
				<div class="col-sm-4">
					<input id="outSTime" name="outSTime" class="form-control time" type="text">
				</div>
				<label class="col-sm-2 control-label">出校结束时间：</label>
				<div class="col-sm-4">
					<input id="outETime" name="outETime" class="form-control time" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-2 control-label">通知模板：</label>
				<div class="col-sm-10">
					<textarea rows="5" cols="5" class="form-control" name="noticeTemplate"></textarea>
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-2 control-label">说明：</label>
				<div class="col-sm-10">
					<p>[parent]：表示家长姓名</p>
					<p>[student]：表示学生姓名</p>
					<p>[time]：表示时间</p>
					<p>[status]：表示入校/出校状态</p>
				</div>
			</div>
			<div class="form-group">
				<div class="form-control-static col-sm-offset-9">
					<button type="submit" class="btn btn-primary">提交</button>
					<button onclick="$.modal.close()" class="btn btn-danger" type="button">关闭</button>
				</div>
			</div>
		</form>
	</div>
    <div th:include="include::footer"></div>
    <script type="text/javascript">
    	lay('.time').each(function(){
	    	laydate.render({
	    	  elem: this
	   		  ,type: 'time'
   			,trigger: 'click'
	    	});
    	});
    
		var prefix = ctx + "module/parameter"
		$("#form-parameter-add").validate({
			rules:{
				xxxx:{
					required:true,
				},
			},
			submitHandler: function(form) {
				$.operate.save(prefix + "/save", $('#form-parameter-add').serialize());
			}
		});
	</script>
</body>
</html>
